package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

public class FriendStepDTO implements Parcelable {
    public String memberId;

    public int type;

    public String name;
    public String avatar;
    public int avatarIndex;
    public long createTime;
    public int amount;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.memberId);
        dest.writeInt(this.type);
        dest.writeString(this.name);
        dest.writeString(this.avatar);
        dest.writeInt(this.avatarIndex);
        dest.writeLong(this.createTime);
        dest.writeInt(this.amount);
    }

    public FriendStepDTO() {

    }

    protected FriendStepDTO(Parcel in) {
        this.memberId = in.readString();
        this.type = in.readInt();
        this.name = in.readString();
        this.avatar = in.readString();
        this.avatarIndex = in.readInt();
        this.createTime = in.readLong();
        this.amount = in.readInt();

    }

    public static final Creator<FriendStepDTO> CREATOR = new Creator<FriendStepDTO>() {
        public FriendStepDTO createFromParcel(Parcel source) {
            return new FriendStepDTO(source);
        }

        public FriendStepDTO[] newArray(int size) {
            return new FriendStepDTO[size];
        }
    };

    @Override
    public String toString() {
        return "FriendStepDTO{" +
                "memberId=" + memberId +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", avatarIndex='" + avatarIndex + '\'' +
                ", createTime='" + createTime + '\'' +
                ", amount=" + amount +
                '}';
    }
}
